/************************************************************************

								Heroes IV
					  Copyright 2000, The 3DO Company

	------------------------------------------------------------------
  						       mouse_window.h

	$Header: /game/mouse_window.h $

	$NoKeywords: $

 ************************************************************************/
#ifndef MOUSE_WINDOW_H_INCLUDED
#define MOUSE_WINDOW_H_INCLUDED

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000

#include "game_window.h"

// ------------------------------------------------------------------
// window for a bitmap-based mouse
// ------------------------------------------------------------------
class t_mouse_window : public t_window
{
public:
	t_mouse_window( t_screen_point hot_spot = t_screen_point(0,0) );
	virtual ~t_mouse_window();

	t_screen_point get_hot_spot() const;
	virtual bool   is_contained( t_screen_point point ) const; 
	void		   open();
	void           set_hot_spot( t_screen_point point  );
protected:
	virtual void  add_child( t_window* window ); // add a child window

	t_screen_point m_hot_spot;
};

inline t_screen_point t_mouse_window::get_hot_spot() const
{
	return m_hot_spot;
}

inline void t_mouse_window::set_hot_spot( t_screen_point point )
{
	m_hot_spot = point;
}

#endif // MOUSE_WINDOW_H_INCLUDED